package com.xlu.Controller;


import com.xlu.result.Result;
import com.xlu.serve.CollegeServe;
import com.xlu.vo.CollegeVO;
import com.xlu.vo.StudentVo;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RequestMapping("/admin/college")
@RestController
@Slf4j
@Api("学院相关")
public class collegeController {

    @Autowired
    private CollegeServe collegeServe;
    @GetMapping("/List")
    public Result getList(){
        log.info("ok");
        List<CollegeVO> collegeVOList = collegeServe.list();
//        return Result.success(studentVoList);
        return Result.success(collegeVOList);
    }

}
